import requests

# 定义了一个变量，存储了视频URL
video_url = "http://v3-dy.ixigua.com/dde8053f8bcd72692e4c8d531c043dd4/5fa0c09e/video/tos/cn/tos-cn-ve-15/6a298f365db244be80c21eae36857862/?a=1128&br=3960&bt=1320&cr=0&cs=0&cv=1&dr=0&ds=3&er=&l=202011030929330101980570965D53A72F&lr=aweme_search_suffix&mime_type=video_mp4&qs=0&rc=ajM1ZWt1aHU2eDMzZmkzM0ApNDNpNWU1Mzs5N2hkaGg8NGc1czVka3FlMGNfLS0tLS9zczVjMDIxNTUzMS4uMjAwYjE6Yw%3D%3D&vl=&vr="

# 如果不设置stream=True，那么在调用resquests.get时，就会耗费时间下载
# r = requests.get(url=video_url)

# 而当stream=True时，什么时候要获取这个数据内容，才会真正的开始下载
r = requests.get(url=video_url, stream=True)
